/**
 * 
 */
package design_pattern.command.audioplayer;

/**
 * @author linzq
 * 
 */
public class KeyPad {

  private Command play;

  private Command rewind;

  private Command stop;

  public KeyPad(Command play, Command rewind, Command stop) {
    this.play = play;
    this.rewind = rewind;
    this.stop = stop;
  }

  public void play() {
    play.execute();
  }

  public void rewind() {
    rewind.execute();
  }

  public void stop() {
    stop.execute();
  }
}
